package com.srxz.mobilepharmacy.service;

import com.srxz.mobilepharmacy.entity.Test;
import com.srxz.mobilepharmacy.util.httpclient.Client;
import com.srxz.mobilepharmacy.util.httpclient.base.SendMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class TestService {
    @Autowired
    @Qualifier("sendMessageFactory")
    private Client client;

    public Test hello(){
        Test test = new Test("tom", "男", 19);
        SendMessage sendMessage = client.instanceSendClient();
        System.out.println(sendMessage == null ? 0 : 1);
        return test;
    }
}
